<template>
  <el-dialog v-if="orderDatalist" v-loading="loading" title="退款单信息" :visible.sync="dialogVisible" width="700px">
    <div class="description">
      <div class="title">用户信息</div>
      <div class="acea-row">
        <div class="description-term">用户昵称：{{ orderDatalist.user.nickname }}</div>
        <div class="description-term">备注：{{ orderDatalist.mark }}</div>
      </div>
      <el-divider />
      <div class="title">{{orderDatalist.refund_type == 1 ? '退款信息' : '退回商品信息'}}</div>
      <div class="acea-row">
        <div class="description-term">订单编号：{{ orderDatalist.order.order_sn }}</div>
        <div class="description-term100">退款单号：{{ orderDatalist.refund_order_sn }}</div>
        <div class="description-term100">退款活动名称：
            <div class="product_name">
                <div>
                    <span>{{orderDatalist.order.order_info.activity_name}}</span>
                 </div>
            </div>
        </div>
        <div class="description-term">退款发起方：{{ orderDatalist.create_user }}</div>
        <div class="description-term">退款总金额：{{ orderDatalist.refund_price }}元</div>
        <div class="description-term">创建时间：{{ orderDatalist.create_time }}</div>
        <div class="description-term">商家备注：{{ orderDatalist.mer_mark }}</div>
        <div class="description-term100">退款凭证：
          <div class="product_name" style="margin-left: 70px;">
            <div class="demo-image__preview">
            <el-image v-for="(item,index) in orderDatalist.pics" :key="index" :src="item" class="mr5" :preview-src-list="[item]"/>
          </div>
          </div>
        </div>
      </div>
    </div>
  </el-dialog>
</template>
<script>
import {
  refundorderLogApi
} from '@/api/order'
export default {
  name: 'OrderDetail',
  props: {
    orderDatalist: {
      type: Object,
      default: null
    }
  },
  data() {
    return {
      dialogVisible: false,
      LogLoading: false,
      // orderDatalist: null,
      loading: false,
      listLoading: true,
      order_id: '',
      tableDataLog: {
        data: [],
        total: 0,
      },
      tableFromLog: {
        page: 1,
        limit: 5
      },
    }
  },
  mounted() {


  },
  methods: {
    pageChangeLog(page) {
      this.tableFromLog.page = page
    },
    handleSizeChangeLog(val) {
      this.tableFromLog.limit = val
    },
  }
}
</script>

<style scoped lang="scss">
  .title{
    margin-bottom: 16px;
    color: #17233d;
    font-weight: 500;
    font-size: 14px;
  }
  .description{
    &-term {
      display: table-cell;
      padding-bottom: 10px;
      line-height: 20px;
      width: 50%;
      font-size: 12px;
    }
  }
 .description-term100{
    display: table-cell;
    padding-bottom: 10px;
    line-height: 20px;
    width: 100%;
    font-size: 12px;
 }
 .product_name{
     margin-left: 90px;
     position: relative;
     top: -20px;
 }
 .demo-image__preview {
  .el-image,img{
    width: 40px;
    height: 40px;
  }
 }
</style>
